setWindowInsetsAnimationCallback

Sets a WindowInsetsAnimationCompat.Callback to be notified about animations of windows that cause insets.

The callback's dispatch mode will affect whether animation callbacks are dispatched to the children of this view.

Prior to API 30, if an OnApplyWindowInsetsListener is used on the same view, be sure to always use the ViewCompat version of setOnApplyWindowInsetsListener, otherwise the listener will be overridden by this method.

The insets dispatch needs to reach this view for the listener to be called. If any view consumed the insets earlier in the dispatch, this won't be called.

Prior to API 21, this method has no effect.

Parameters

view

view for which to set the callback.

callback

The callback to set, or null to remove the currently installed callback